package tasks.OpportunitiesBaseData.MainView;

import java.util.ArrayList;

import resources.tasks.OpportunitiesBaseData.MainView.STGFrontEndWrapperAfterAppliedFiltersHelper;
import tasks.OpportunitiesBaseData.Filters.FilterLayoutTemplate;

import com.rational.test.ft.*;
import com.rational.test.ft.object.interfaces.*;
import com.rational.test.ft.object.interfaces.SAP.*;
import com.rational.test.ft.object.interfaces.WPF.*;
import com.rational.test.ft.object.interfaces.dojo.*;
import com.rational.test.ft.object.interfaces.siebel.*;
import com.rational.test.ft.object.interfaces.flex.*;
import com.rational.test.ft.object.interfaces.generichtmlsubdomain.*;
import com.rational.test.ft.script.*;
import com.rational.test.ft.value.*;
import com.rational.test.ft.vp.*;
import com.ibm.rational.test.ft.object.interfaces.sapwebportal.*;

import core.Configurations;
import core.ControlsMapping;
import core.exceptions.ResultFailureException;
import core.testcases.TestProjectSuperHelper;

/**
 * Description : Functional Test Script
 * 
 * @author dimitar.vasilev
 */
public class STGFrontEndWrapperAfterAppliedFilters extends
		STGFrontEndWrapperAfterAppliedFiltersHelper {
	/**
	 * Script Name : <b>STGFrontEndWrapperAfterAppliedFilters</b> Generated :
	 * <b>Dec 13, 2011 1:44:55 PM</b> Description : Functional Test Script
	 * Original Host : WinNT Version 6.1 Build 7601 (S)
	 * 
	 * @since 2011/12/13
	 * @author dimitar.vasilev
	 */

	public ArrayList<String> get() {

		ArrayList<String> listOfDetailNumbers = new ArrayList<String>();
		try {

			String[][] frontEndContent = ControlsMapping.MainView.mainView_table
					.transformTable();

			if (frontEndContent.length != 0) {
				String[] row = null;
				for (int i = 1; i < frontEndContent.length; i++) {
					row = frontEndContent[i];

					listOfDetailNumbers.add(row[STGColumns.DtlKey.ordinal()]);

					System.out.println("Data for "
							+ listOfDetailNumbers.get(i - 1)
							+ " detail was wrapped!");
				}
			}
		} catch (ResultFailureException e) {
			e.printStackTrace();
		}

		return listOfDetailNumbers;
	}
	// public void testMain(Object[] args)
	// {
	// STGFrontEndWrapperAfterAppliedFilters b = new
	// STGFrontEndWrapperAfterAppliedFilters();
	// b.get();
	// }
}
